<?php

class UserMenu extends AtomWidget
{
//	protected function visibilityRules()
//	{
//		return array(
//			array('allow', 'users' => array('@')),
//		);
//	}
	public function init()
	{
		$this->visible = !Yii::app()->user->isGuest;
		$this->title=CHtml::encode(Yii::app()->user->name);
		parent::init();
	}

}
?>
